# pip install faker
from faker import Faker

# 注意：要加上中国地区
fk = Faker(locale=['zh-CN'])

# 生成手机号码
print(fk.phone_number())

# 生成用户名
print(fk.user_name())

print(fk.name())

# 比较详细的用户数据
print(fk.profile())

#
card = fk.credit_card_number()
print(card)

user = fk.profile()
address = user['address']
print(address)

# 生成随机字符串
print(fk.pystr(min_chars=2, max_chars=4))

print(fk.sentence())
print(fk.text())
print(fk.date())
